package com.wu.pojo.bean;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("答案列表bean")
@NoArgsConstructor
@AllArgsConstructor
public class QuestionAnswerBean implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("问题id")
    @NotNull(message = "问题id不能为空")
    private String questionId;

    @ApiModelProperty("问题类型")
    @Range(min = 1, max = 3, message = "问题类型错误")
    private Integer questionType;

    @ApiModelProperty("答案内容")
    @NotNull(message = "答案不能为空")
    private Object answerContents;
}
